/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package factories;

import strategies.FriendListingStrategy;
import strategies.IListStrategy;
import strategies.FriendRequestListingStrategy;
import strategies.RelatedListingStrategy;

/**
 *
 * @author umutcan
 */
public class ListStrategyFactory {
    
    public static IListStrategy createStrategy(int listType)
    {
        switch (listType)
        {
            case IListStrategy.FriendRequests:
                return new FriendRequestListingStrategy();
            case IListStrategy.Friends:
                return new FriendListingStrategy();
             case IListStrategy.Related:
                 return new RelatedListingStrategy();
             default:
                 return null;
                
                
        }
    }
    
}
